{% if inventory_hostname == groups['masters'][0] %}
cluster-init: true
{% else %}
server: https://{{ control_plane_endpoint }}:6443
{% endif %}
token-file: {{ k3s_token_file }}
{% if 'masters' in group_names %}
{{ k3s_server_config | to_nice_yaml }}
{% endif %}
snapshotter: stargz
